<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('海外发货申请')" />
    <th:block th:include="include :: businessCSS" />

    <style>
        .layui-table-tool{display: none;}
        .tablebody{background-color: #fff;padding: 20px;margin-right: 15px;}
        .tablebody input{display: inline;width: 80%;border: none;}
        .tablebody table{width: 100%;}
        .tablebody th,.tablebody td{border:solid 1px #ddd;padding:10px;font-size:14px;text-align: center;}
        .redcolor{color: red;cursor: pointer;min-width: 40px;}
        .bluecolor{color: rgb(71, 150, 253);cursor: pointer;min-width: 50px;}
        .topbtns {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 9999;
            background-color: #fff;
        }
        .layui-table-cell{
            height:auto;
            overflow:visible;
            text-overflow:inherit;
            white-space:normal;
            line-height: 25px;
            word-break: break-all;
        }
    </style>
</head>
<body class="no-skin">
<div class="main-container" id="main-container">
    <div class="main-content">
        <form class="layui-form head-form">
            <div class="north">
                <th:block th:include="include :: business_btn" />
                <th:block th:include="include :: business_tpl('top')" />

            </div>

            <th:block th:include="include :: pageFooter"/>
        </form>

        <div class="tablebody">
            <div>
                <div style="padding: 16px;display: flex;justify-content: space-between;">
                    <div>
                        <button class="layui-btn layui-btn-normal dhicon"
                                th:classappend="${enableEdit} == 1 ?'':'layui-btn-disabled'" type="button"
                                th:disabled="${enableEdit} == 1 ?false:true" lay-event="addbtn" id="btn-sh" onclick="addDetail()">新增
                        </button>
                    </div>
                </div>
            </div>
            <table class="layui-hide" id="dhtable" lay-filter="dhtable"></table>

        </div>

    </div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: businessJS" />
<th:block th:include="include :: businessTableBtn" />
<th:block th:include="include :: inlineJS" />
<script th:src="@{/dhecp/js/dh-toFixed.js}"></script>
<th:block th:include="include :: deliveryRequestJS" />

<script th:inline="javascript">
    var detailList=[[${detailList}]]
     enableEdit =[[${enableEdit}]]
     warehouseAddress =[[${warehouseAddress}]]
     destHouseAddress =[[${destHouseAddress}]];
</script>
<script th:src="@{/js/storage/deliveryRequest/deliveryRequest_edit.js?v=20230911}"></script>
</body>
</html>